Securing Your Web Site

Securing Your Web Site: An Overview
Maintaining an activity log
Creating users and groups
Removing users and groups
Restricting access to Web site folders


Securing Your Web Site: An Overview

The simplest form of Web site security is to maintain a log of the people who visit your site. The log records who visited your site, when they visited, and what they looked at. By checking your logs, you can find out how people are using your site, and make sure that no one is misusing it. Microsoft Personal Web Server control panel has an option that allows you to maintain an activity log. As long as this option is on, Personal Web Server will record all the activity on your site.

However, although an activity log enables you to monitor who visits your site and how they use it, it doesn't enable you to limit who has access to your site. Everyone on your network or on the Internet can still access everything on your Web site. If you have files in your Web site folder that you don't want everyone see, use access controls to define who is allowed to gain access to the items on your site. Microsoft Personal Web Server uses Macintosh Personal File Sharing access control privileges to determine who is allowed to gain access to your Web site.

When you specify a Web Site folder, you are effectively preventing people from accessing files outside of that folder, but there are two exceptions: aliases and disk browsing.

Creating Aliases
Personal Web Server will follow aliases to the real file, if possible. For instance, suppose you had a Default.htm file on another hard disk outside the Personal Web Site folder. You can create an alias of this file (command-M in the Finder) and drag that alias into your Web Site Folder. Make sure you delete the " alias" on the end of the name, so that its name is exactly Default.htm. When Personal Web Server retrieves the file, it will see that the file is an alias, and will get the contents of the real HTML file on the other hard disk.

You can do the same with folders. Creating an alias to a folder and placing it in the Personal Web Site folder gives access to the real folder (and all its files and subfolders within it). You can even have aliases within already aliased folders.

Disk Browsing
Personal Web Server also enables you to browse the contents of your entire disk and all other disks mounted on the desktop. This is an optional feature, which you must turn on. In addition, you must choose a secure password and user name to prevent other people from gaining access to your disk by using this method. The most secure passwords contain both letters and numbers and should be changed frequently.

Related Topics
Maintaining an activity log
Creating users and groups
Using access controls

Return to top

To maintain an activity log

  1. Open the Microsoft Personal Web Server control panel and click the Web Site button.
  2. Select the Log Web Site Activity check box.
  3. Visit your home page.
  4. Click the Owner Sign-in link.
  5. Type the owner name and password.
  6. Click the View Web Site Activity Log link.

Note

Tip

Related Topic
Opening the Microsoft Personal Web Server control panel
Securing your Web site: An Overview
Visiting your home page

Return to top

To create users and groups

  1. From the Apple menu, choose Control Panels, and double-click Users & Groups.
  2. From the File menu, choose New User.
  3. A New User icon will appear in the Users & Groups window. Replace "New User" with the name of the user you are adding. This is the user name that the user will need to type to gain access to restricted files on your Web site.
  4. Double-click the icon.
  5. Type a password for the user in the User Password text box. This is the password that the user will need to type to gain access to restricted files on your Web site.
  6. Make sure the Allow User to Connect is selected.
  7. To create a group of users, choose New Group from the File Menu and drag users into the Group.
  8. From the File menu, choose Close Window.
  9. Click the Save button.

Related Topic
Removing a user or group
Restricting access to a Web site folder
Securing Your Web site: An Overview

Return to top

To remove users or groups

  1. From the Apple menu, choose Control Panels, and double-click Users & Groups.
  2. Do one of the following:

Related Topics
Creating a user or group
Restricting access to a Web site folder
Securing Your Web site: An Overview

Return to top

To restrict access to a Web site folder

  1. Make sure that file sharing is on. To do so, from the Apple menu, choose Control Panels, and double-click Users & Groups.
  2. Click Start.
  3. Select your Web site folder in the Finder, or any folder contained in it, and then choose Sharing from the File menu.
  4. To change the sharing privileges for a folder, select the Share This Item And Its Contents check box.
  5. Use the Sharing window to define which users or groups are allowed to gain access to the selected folder. The See Files check box determines access to the site and should be selected. However, the See Folders and Make Changes check boxes do not affect access to your Web site.
  6. You can clear the Share This Item And Its Contents check box (optional).
  7. From the File menu, choose Close, and save your settings.
  8. Open the Microsoft Personal Web Server control panel and click the Web Site button.
  9. Select the Restrict Access check box. Now, when anyone tries to gain access to documents in that folder, they will be asked to type their name and password.

Notes

Related Topics
Maintaining an activity log
Opening the Microsoft Personal Web Server control panel
Register users and groups
Removing users and groups
Securing Your Web site: An Overview

Return to top